<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="beans.Account"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>个人信息</title>
<style type="text/css">
/* CSS Document */
* {
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
}

.clearfix:after {
	content: "";
	display: block;
	height: 0;
	visibility: hidden;
	clear: both;
}

.clearfix {
	*zoom: 1;
}

body {
	background-size: cover;
	background-attachment: fixed;
}

.content {
	width: 900px;
	height: 500px;
	margin: center;
	border-radius: 10px;
	background-color: rgba(236, 236, 236, 0.59);
	transition: all 1.0s;
	/*box-shadow: 0px 0px 20px rgba(0,0,0,0.3);*/
}

.content img {
	float: left;
	width: 200px;
	height: 200px;
	margin: 150px 0 0 80px;
	border-radius: 100px;
}

.content:hover {
	box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.52);
}

.content_r {
	float: right;
	width: 500px;
	margin: 80px 60px 0 0;
	/*	background-color: pink;*/
}

.content_l {
	float: left;
	width: 100%;
	text-align: center;
}

.content_l h5 {
	font-size: 17px;
}

.cc {
	margin-top: 10px;
	color: #1F2023;
	font-size: 18px;
}

.color_1 {
	color: #4855EC;
	font-size: 18px;
}

.deeppink {
	color: deeppink;
}

.link {
	margin-top: 30px;
}

.link a {
	display: block;
	float: left;
	width: 120px;
	height: 45px;
	margin: 5px 5px 0 0;
	/*	padding: 0 15px;*/
	color: #fff;
	line-height: 45px;
	transition: all 0.8s;
	/*	background-color: deeppink;*/
}

.link a:hover {
	background-color: rgba(0, 201, 243, 0.35);
}

.deeppink_1 {
	background-color: deeppink;
}

.dodgerblue {
	background-color: dodgerblue;
}

.magenta {
	background-color: magenta;
}

.orange {
	background-color: orange;
}

.C_block {
	width: 50%;
	float: left;
	height: 60px;
	border-radius: 2px;
}
</style>
</head>
<body>
	<div style="width: 100%; border-bottom: 1px solid #d1d6d8;">
		<div style="margin-top: 20px; margin-left: 30px; margin-bottom: 10px;">
			<span style="font-size: 40px;">员&nbsp;工&nbsp;信&nbsp;息</span>
		</div>
	</div>
	<%
	Account account = null;
	if (request.getSession().getAttribute("account") == null) {
		out.print("<script type='text/javascript'>alert('获取信息失败重新登录');window.location.href='../login.jsp'</script>");
	} else {
		account = (Account) session.getAttribute("account");
	}
	%>
	<div style="width: 100%;">

			<div style="width: 1000px; height: 60px; border-radius: 1px;">
				<div class="C_block">
					<div style="height: 30px; font-weight: bolder;">账号:</div>
					<div style="height: 30px;">
						<%=account.getAno()%>
					</div>
				</div>
				<div class="C_block">
					<div style="height: 30px; font-weight: bolder;">密码:</div>
					<div style="height: 30px;">
						<%=account.getPassWord()%>
					</div>
				</div>
			</div>
			<div style="width: 1000px; height: 60px; border-radius: 1px;">
				<div class="C_block">
					<div style="height: 30px; font-weight: bolder;">姓名:</div>
					<div style="height: 30px;">
						<%=account.getAccountName()%>
					</div>
				</div>
				<div class="C_block">
					<div style="height: 30px; font-weight: bolder;">性别:</div>
					<div style="height: 30px;">
						<%=account.getSex()%>
					</div>
				</div>
			</div>
			<div style="width: 1000px; height: 60px; border-radius: 1px;">
				<div class="C_block">
					<div style="height: 30px; font-weight: bolder;">出生日期:</div>
					<div style="height: 30px;">
						<%=account.getBirthdate()%>
					</div>
				</div>
				<div class="C_block">
					<div style="height: 30px; font-weight: bolder;">职位:</div>
					<div style="height: 30px;">
						<%=account.getPosition()%>
					</div>
				</div>
			</div>
			<div style="width: 1000px; height: 60px; border-radius: 1px;">
				<div class="C_block">
					<div style="height: 30px; font-weight: bolder;">部门:</div>
					<div style="height: 30px;">
						<%=account.getdepartment()%>
					</div>
				</div>
				<div class="C_block">
					<div style="height: 30px; font-weight: bolder;">电话号码:</div>
					<div style="height: 30px;">
						<%=account.getPhoneNumber()%>
					</div>
				</div>
			</div>
			<div style="width: 1000px; height: 90px;">
				<div
					style="width: 100%; float: left; height: 60px; border-radius: 1px;">
					<div style="height: 30px; font-weight: bolder;">居住地址:</div>
					<div style="height: 60px;">
						<%=account.getAddress()%>
					</div>
				</div>
			</div>

	</div>

</body>


<script>
    var reupwderror ='<%=request.getParameter("reupwderror")%>';
    switch (reupwderror){
        case "0":
            alert("两次输入密码不一致！");
            window.location.href("/");
            error = null;
            break;
        case "1":
            alert("修改成功！");
            window.location.href("/");
            error = null;
            break;
        
    }
</script>
</html>